package Proxy_Pattern.Rmi;

// -*-coding:utf-8 -*-
//人员：刘陆鑫
//班级：19软3
//学号；2019110218
public class RealSever implements Server{
    public double display(int num, String fu, int num2) {
        System.out.println("远程服务器正在运算");
        if (fu == "+") {
            return num + num2;
        } else if (fu == "-") {
            return num - num2;
        } else if (fu == "*") {
            return num * num2;
        } else if (fu == "/") {
            return num / num2;
        }
        else{
            System.out.println("计算失败");
            return 99999.99;
        }
    }
}
